#include <iostream>
#include <string>
using namespace std;


string squeeze(char* s1, const char* s2)
{
	int i = 0,k = 0;
	int flag = 1;

	int len1 = strlen(s1);
	int len2 = strlen(s2);

	char tm[100] = {0};
	char sample[256] = {0};

	for(i = 0 ;i < len2 ; i ++)
		sample[s2[i]] = 1;   

	for(i = 0 ;i < len1 ;i ++)
	{
		flag = 1;
		if(sample[s1[i]])
			flag = 0;
		if(flag)
			tm[k ++] = s1[i];
	}

	tm[k]='\0';
	strcpy(s1,tm);
	

	return s1;

}

string test(string s1,string s2)
{
	int len1=s1.length();
	int len2=s2.length();
	char sample[256]={0};
	char temp[100]={0};
	bool flag=1;
	int k=0;
	for (int i=0;i<len2;i++)
	{
		sample[s2[i]]++;
	}
	for (int j=0;j<len1;j++)
	{
		if (sample[s1[j]])
		{
			flag=0;
		}
		else
		{
			temp[k++]=s1[j];
		}
	}
	for (int i=0;i<len1;i++)
	{
		s1[i]=temp[i];
	}
	s1[k]='\0';
	return s1;

}


int main()
{
	//char  s1[]="abcdefg";
	//char *s2="ce";
	//string s=squeeze(s1,s2);
	//cout<<s<<endl;

	string s1="abcdefg";
	string s2="ce";
	string s3=test(s1,s2);
	cout<<s3<<endl;


}